package com.king.cms.publish;

public class MeetingFactory {
private static MeetingFactory _INSTANCE = new MeetingFactory();
private final static long TEMPLATE = 0;
private final static long PPT = 1;
private final static long VIDEO = 2;

private MeetingFactory(){
	
}

/**
 * Get a single instance of MeetingFactory
 * @return
 */
public static MeetingFactory  getInstance(){
	if(null == _INSTANCE)
		_INSTANCE = new MeetingFactory();
	return _INSTANCE;
} 
/**
 * Get the meeting dealer according to it's type.
 * @param meetingType
 * @return
 */
public MeetingDataReceive dataReceiveInstance(Long meetingType){
	MeetingDataReceive instance = null;
	if(TEMPLATE == meetingType.longValue()) 
		instance = new MeetingWithTemplate(); 
	if(PPT == meetingType.longValue()) 
		instance = new MeetingInPPT(); 
	if(VIDEO == meetingType.longValue()) 
		instance = new MeetingInVideo(); 
	return instance;
}
}
